package arquitetura.model;

import java.util.Collection;

import to.Categoria;
import exceptions.*;

public interface ModelCategoria {
	public void incluir(Categoria categoria) throws ConexaoException, ModelException;
	public void alterar(Categoria categoria)throws ConexaoException, ModelException;
	public void excluir(int codigo) throws ConexaoException, ModelException;
	public Categoria consultar(int codigo) throws ConexaoException, ModelException;
	public Collection<String[]> listarParaGrid() throws ConexaoException, ModelException;
	public boolean descricaoJahCadastrada(Categoria categoria) throws ConexaoException, ModelException;
	public boolean podeExcluirCategoria(int codigo) throws ConexaoException, ModelException;
}
